<?php
/**
 * Created by PhpStorm.
 * User: peter
 * Date: 18-10-23
 * Time: 下午2:45
 */

namespace app\activity\controller;


use think\Request;

class PersonalInformation extends Auth
{
    /**
     * @purpose 获取个人信息
     * @param Request $request
     * @return array
     * @throws \think\db\exception\DataNotFoundException
     * @throws \think\db\exception\ModelNotFoundException
     * @throws \think\exception\DbException
     */
    public function personalInformationGet ()
    {
        return \app\activity\logic\personalInformation::personalInformationGet(self::$uid);
    }

    /**
     * @purpose 修改个人信息
     * @param Request $request
     * @return mixed
     */
    public function personalInformationEdit (Request $request)
    {
        $data = $request->post();
        return \app\activity\logic\personalInformation::personalInformationedit($data,self::$uid);
    }
}